#ifndef _COMMON_FUNC_H_
#define _COMMON_FUNC_H_

#ifdef __cplusplus
extern "C" {
#endif


#define PROCESS_LIST  "/tmp/process_list.txt"


int GetFileData(char* file_name,char * buf,int max_len);
int GetProcFileData(char* file_name,char * buf,int max_len);
int FindSTR( char  * byhtml, char *cfind, int nStartPos);
int GetTmpLink(char * byhtml, char * temp, int start, int end,int max_num);
int pox_system(const char *cmd_line);

void  Time_tToCustomTime(time_t time,int * year, int * month,int* day,int* hour,int* minute,int* second );
time_t CustomTimeTotime_t(int year,int month, int day, int hour, int minute,int second);

int SafeCreateThread(void  * pThreadHandle, void * pData,int id,void WorkThread(void * ));


#ifdef __cplusplus
}
#endif

#endif 
